home *** CD-ROM | disk | FTP | other *** search
/ Champak 141 / (Vol 141) Oct 17 2011.iso / Games / dodge.swf / scripts / __Packages / FastMissile.as < prev    next >
Encoding:
Text File  |  2011-10-17  |  846 b   |  40 lines

  1. class FastMissile extends Missile
  2. {
  3.    var tm;
  4.    var mc;
  5.    var dm;
  6.    static var MISSILE_TIMER = 180;
  7.    static var MAX_SPEED = 11;
  8.    static var DAMAGE = 2;
  9.    function FastMissile(x, y, newAngle)
  10.    {
  11.       super(x,y,newAngle);
  12.    }
  13.    function getMaxSpeed()
  14.    {
  15.       return FastMissile.MAX_SPEED;
  16.    }
  17.    function getMissileTimer()
  18.    {
  19.       return FastMissile.MISSILE_TIMER;
  20.    }
  21.    function createTrailManager()
  22.    {
  23.       this.tm = new EfficientTrailManager(this.mc,this.mc.exhaust1,3,_root.effects < 3 ? null : 65280,this.getTrailLength(),false,5);
  24.    }
  25.    function createSound()
  26.    {
  27.    }
  28.    function createDebrisManager()
  29.    {
  30.       if(_root.effects >= 2)
  31.       {
  32.          this.dm = new DebrisManager(65280,1);
  33.       }
  34.    }
  35.    function getDamage()
  36.    {
  37.       return FastMissile.DAMAGE;
  38.    }
  39. }
  40.